<?php
if (!session_id()) session_start();
//require_once(dirname(__FILE__).'/classes/core/startup.php');


//require_once(dirname(__FILE__).'/config-defaults.php');
//require_once(dirname(__FILE__).'/common.php');
//require_once(dirname(__FILE__).'/classes/core/language.php');

/*
$con = mysql_connect("localhost", "hello", "321");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

$db_selected = mysql_select_db("test_db",$con);
$sql = "SELECT * from Person WHERE Lastname='Adams'";
$result = mysql_query($sql,$con);

*/



class PhalconDI
{

  public function set($str,$obj)
    {}
		
		  public function get($objName)
    {
	}
		  public function  getShare($objName)
    {
		
	}

}

$di = new PhalconDI();

//Register a "db" service in the container
$di->set('db', function(){
    return new Connection(array(
        "host" => "localhost",
        "username" => "root",
        "password" => "secret",
        "dbname" => "invo"
    ));
});

//Register a "filter" service in the container
$di->set('filter', function(){
    return new Filter();
});

//Register a "session" service in the container
$di->set('session', function(){
    return new Session();
});

//require_once(dirname(__FILE__).'/survey-score.php');
require_once(dirname(__FILE__).'/com.attilax.php/lang/db.php');
require_once(dirname(__FILE__).'/conn.php');
//require_once(dirname(__FILE__).'/login/login.php');
require_once(dirname(__FILE__).'/goods/goods.php');
 require_once(dirname(__FILE__).'/com.attilax.php/user/user.php');
 require_once(dirname(__FILE__).'/com.attilax.php/checkPwd/chkPwd.php');
//print_r( &getScoreX() ) ;
$dwrEventContainer = array(); //定义一个数组
$dwrEventContainer['get-score']= function () { 
	return	getScoreX() ;
}; 
$dwrEventContainer['login']= function () { 
    
	return	loginPinnge() ;
};  
$vars_list= array();
?>